﻿<!DOCTYPE html>
<html>
    <head>
        <title>职统</title>
        <link rel="stylesheet" href="/styles/common.css"/>
    </head>
    <body>
        <#include 'top.ftl'>
        <div class="page-body">
            <#include "leftmenu.ftl">
            <div class="page-content">

                <table class="listtable">
                    <caption>
                        最新的通知
                    </caption>
                    <tr class="listheader">
                        <th style="width:300px">时间</th>
                        <th>事件</th>
                    </tr>
                    <#if news??>
                        <#list news as new>
                            <tr>
                                <td>${(new.time)?string('yyyy.MM.dd HH:mm:ss')}</td>
                                <td>${new.operation}</td>
                            </tr>
                        </#list>
                    </#if>

                </table>
                <div>

                    <div class="pager-header">
                        <div class="header-info">
                            共<span class="info-number">${total}</span>条结果，
                            分成<span class="info-number">${pagenum}</span>页显示，
                            当前第<span class="info-number">${page}</span>页
                        </div>
                        <div class="header-nav">
                            <#if page gt 1>
                                <button class="clickbutton"><a href="/newmessage?page=1">首页</a></button>
                                <button class="clickbutton"><a href="/newmessage?page=${page-1}">上一页</a></button>
                            </#if>
                            <#if page lt pagenum>
                                <button class="clickbutton"><a href="/newmessage?page=${page+1}">下一页</a></button>
                                <button class="clickbutton"><a href="/newmessage?page=${pagenum}">末页</a></button>
                            </#if>

                        </div>
                    </div>
                </div>
                
            </div>
        </div>
        <div class="page-footer">
            <hr/>
            欢迎使用
        </div>
    </body>
</html>